<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html lang="zh-CN">
<head>
    <!-- 必须的 meta 标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <jsp:include page="commom.jsp"/>

    <!-- Bootstrap 的 CSS 文件 -->

    <title>Management</title>
    <script>
        function gotoEdit() {
            window.location.href="/user/edit";
        }
    </script>
</head>
<body>
<jsp:include page="top.jsp"></jsp:include>
<%--align="center"--%>
<div class="container-fluid" >
    <div class="row">
        <%--        左边导航--%>
        <jsp:include page="left.jsp"/>


        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
                <div class="col-md-8 order-md-1">
                    <h4 class="mb-3" align="center">添加用户</h4>
                    <form action="/user/add" method="post">
                        <div class="form-row">
                            <div class="form-group col-md-6">
                                <label for="username">username</label>
                                <input type="email" class="form-control" id="username" name="username" placeholder="用户名/邮箱">
                            </div>
                            <div class="form-group col-md-6">
                                <label for="password">password</label>
                                <input type="password" class="form-control" id="password" name="password" placeholder="密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="nickname">nickname</label>
                            <input type="text" class="form-control" id="nickname" name="nickname" placeholder="昵称">
                        </div>
                        <div class="form-group">
                            <label for="phone">phone</label>
                            <input type="text" class="form-control" id="phone" name="phone" placeholder="电话号码">
                        </div>


                        <button type="submit" class="btn btn-primary">提交</button>
                    </form>
                </div>
            </div>

            <canvas class="my-4 w-100" id="myChart" width="900" height="380"></canvas>


        </main>
    </div>
</div>


</body>
</html>
